package com.probox.common.core.utils;

import cn.hutool.extra.mail.MailUtil;

import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;

public class MailTool {

    public static void main(String[] args) throws Exception {
        //Map<String,Object> map = getMailMap(ConfigCenter.getMailSenderInfo());
        newUserRegister("13723467352");
    }

    public static void newUserRegister(String mobile){
        MailUtil.sendText("33991786@qq.com","新客户注册了","新客户手机号码:"+mobile+",请速速跟进服务！");
    }
}
